package com.itheima.mall.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.itheima.mall.pojo.Coupon;
import com.itheima.mall.pojo.CouponProductCategoryRelation;
import com.itheima.mall.pojo.CouponProductRelation;
import com.itheima.mall.pojo.ProductCategory;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CouponDto extends Coupon {

    //优惠券和产品分类关系表
    @TableField(exist = false)
    private List<CouponProductCategoryRelation> productCategoryRelationList;

    //优惠券和产品关系表
    @TableField(exist = false)
    private List<CouponProductRelation> productRelationList;



}
